package org.wk.account.domain.ling;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import java.math.BigDecimal;


/**
 * @ClassName	: SubAccountLing
 * @Package		：org.wk.digiccy.domain.ling
 * @Author df.w 
 * @Create Time	：2018年5月10日 上午11:27:25
 * @Description	: 鲸灵
 */ 
@Entity(name="org.wk.account.domain.ling.SubAccountLing")
@Table(name="sub_account_ling")
public class SubAccountLing extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;

	@Column(unique = true)
	private String userId;
		
	/**
	 * @Fields amount: int
	 * @Desc TODO: 总金额 
	 */
	@Column(columnDefinition="decimal(19,2) default 0")
	private BigDecimal amount = BigDecimal.ZERO;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
}
